﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DefaultStyle.Master" AutoEventWireup="true" CodeBehind="CongTy_DangDeal.aspx.cs" Inherits="Dack_Web2.CongTy_DangDeal" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <p style="font-size: 25px; font-weight: bolder; font-family: 'Times New Roman', Times, serif; color: #FF0000;">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        ► Đăng Deal
    </p>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Horizontal" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" Width="700px" Font-Names="Segoe UI">
                <AlternatingRowStyle BackColor="#F7F7F7" />
                <Columns>
                    <asp:BoundField DataField="MaSanPham" HeaderText="Mã sản phẩm" />
                    <asp:BoundField DataField="NgayDang" DataFormatString="{0:dd/MM/yyyy}" HeaderText="Ngày đăng" />
                    <asp:BoundField DataField="TenSanPham" HeaderText="Tên sản phẩm" />
                    <asp:BoundField DataField="TenLoaiSanPham" HeaderText="Loại sản phẩm" />
                    <asp:BoundField DataField="GiaSanPham" HeaderText="Giá sản phẩm" />
                    <asp:CommandField ShowSelectButton="True" />
                </Columns>
                <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
                <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
                <SortedAscendingCellStyle BackColor="#F4F4FD" />
                <SortedAscendingHeaderStyle BackColor="#5A4C9D" />
                <SortedDescendingCellStyle BackColor="#D8D8F0" />
                <SortedDescendingHeaderStyle BackColor="#3E3277" />
            </asp:GridView>

            <br />
            <br />
            <asp:Label ID="Label1" runat="server" CssClass="label_s" Text="Mã sản phẩm :"></asp:Label>
            <asp:TextBox ID="txtMaSanPham" runat="server" Width="202px" Enabled="False"></asp:TextBox>

            <br />

            <br />
            <asp:Label ID="Label2" runat="server" CssClass="label_s" Text="Tên sản phẩm :"></asp:Label>
            <asp:TextBox ID="txtTenSanPham" runat="server" Width="261px" Enabled="False"></asp:TextBox>
         <br />

    <br />
    <asp:Label ID="Label3" runat="server" CssClass="label_s" Text="Số lượng sản deal :"></asp:Label>
    <asp:TextBox ID="txtSoLuong" runat="server" Width="144px" CssClass="textbox_s"></asp:TextBox>
    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtSoLuong" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
    <asp:Label ID="Label6" runat="server" CssClass="label_s" Text="Giảm" Width="48px"></asp:Label>
    <asp:TextBox ID="txtGiam" runat="server" Width="58px" CssClass="textbox_s"></asp:TextBox>
    <asp:Label ID="Label7" runat="server" CssClass="label_s" Text="%" Width="16px"></asp:Label>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtGiam" ErrorMessage="RequiredFieldValidator" ForeColor="Red">*</asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="PanelNgaySinh" runat="server">
                <asp:Label ID="lbNgaySinh" runat="server" CssClass="label_s" Text="Ngày bắt đầu :"></asp:Label>
                Tháng&nbsp;
                 <asp:DropDownList ID="drThang" runat="server" AutoPostBack="True" Height="20px" Width="51px" OnSelectedIndexChanged="drThang_SelectedIndexChanged">
                     <asp:ListItem>1</asp:ListItem>
                 </asp:DropDownList>
                &nbsp;/ Ngày&nbsp;
                 <asp:DropDownList ID="drNgay" runat="server" Height="20px" Width="51px">
                 </asp:DropDownList>
                &nbsp;/ Năm&nbsp;
                 <asp:DropDownList ID="drNam" runat="server" Height="20px">
                 </asp:DropDownList>
            </asp:Panel>
            <br />
            <asp:Panel ID="PanelNgaySinh0" runat="server">
                <asp:Label ID="lbNgaySinh0" runat="server" CssClass="label_s" Text="Ngày kết thúc :"></asp:Label>
                Tháng&nbsp;
                        <asp:DropDownList ID="drThang0" runat="server" AutoPostBack="True" Height="20px" Width="51px" OnSelectedIndexChanged="drThang0_SelectedIndexChanged">
                            <asp:ListItem>1</asp:ListItem>
                        </asp:DropDownList>
                &nbsp;/ Ngày&nbsp;
                        <asp:DropDownList ID="drNgay0" runat="server" Height="20px" Width="51px">
                        </asp:DropDownList>
                &nbsp;/ Năm&nbsp;
                        <asp:DropDownList ID="drNam0" runat="server" Height="20px">
                        </asp:DropDownList>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>

    <asp:Label ID="lbThongBao" runat="server" Font-Bold="True"
        Font-Size="Medium" ForeColor="Red"></asp:Label>
    <br />
    <div style="padding-left: 300px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btDangDeal" runat="server" Text="Đăng Deal" OnClick="btDangDeal_Click" CssClass="button_s" /></div>
    <br />

</asp:Content>
